/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/ce/InterfaceLayout.h,v 1.3 2003/11/21 12:39:24 itsme Exp $
 *
 *
 */


#ifndef __INTERFACELAYOUT_H__


#include <windows.h>
#include <string>

typedef struct
{
    // -----------------------------------------------
    // ---------- display area -----------------------

    // mainleft= 4+4+6+3
    // maintop = 26+5
    // 1st line
    RECT meter_linedelay;       // x= mainleft, 57    y= maintop, 15
    RECT calltype;              // x= mld.x1+1, 35    y= maintop, 15
    RECT sigarea;               // x= lt.x1+1, 112    y= maintop, 31

    // 2nd line
    RECT securestatus;          // x= mainleft, 93    y= mld.y1+1, 15
    RECT yoursig;               // x= sigarea.x+3, 52 y= sigarea.y+15, 12
    RECT partnersig;            // x= ysig.x1+2, 52   y= sigarea.y+15, 12

    // 3rd line
    RECT status;                // x= mainleft, 206   y= sigarea.y1+8, 12
    RECT partnername;           // x= mainleft, 206   y= sigarea.y1+8, 12
    // 4th line
    RECT status2;               // x= mainleft, 206   y= pname.y1+7, 12
    RECT partnernumber;         // x= mainleft, 206   y= pname.y1+7, 12

    // top left side
    RECT meter_gsmsignal;       // x= 8, 6            y= maintop, 67
    // top right side
    RECT meter_batterlevel;     // x= 226, 6          y= maintop, 67

    int sig_font;               // helvetica, bold, 16px, #003399
    int calltype_font;          // helvetica, bold, 10px, #003399
    int name_font;              // helvetica, bold, 16px, #003399
    int number_font;            // helvetica, bold, 16px, #003399


    // -----------------------------------------------
    // ---------- signature display ------------------

    RECT bigsig_background;     // x= 0, 240         y= 0, 88
    // 1st line
    // text .....   x= mainleft, 206   y= maintop+5, 12

    // 2nd line
    RECT bigsig_yoursig;        // x= mainleft+6, 100 y= bsinst.y1+6, 21
    RECT bigsig_partnersig;     // x= bs_your.x1, 100 y= bsinst.y1+6, 21

    // 3rd line
    RECT button_sigok;          // x= bs_your.x1+12, 85 y= bs_your.y1+9, 30

//    int bigsig_instructions_font;  // helvetica,bold,10px, #003399
    int bigsig_font;               // helvetica,bold,28px, #003399
    COLORREF bigsig_bkcolor;

    // -----------------------------------------------
    // ---------- key pad ----------------------------

    // btncols= 4, +64, +64, +74
    // btnrows= 118, +32, +34, +34, +34, +34

    // 5th line
    RECT button_menu;           // x= col0, 60   y= row0, 24
    RECT button_mute;           // x= col1, 60   y= row0, 24
    RECT button_back;           // x= col2, 60   y= row0, 24

    // 6th line
    RECT button_1;              // x= col0, 60   y= row1, 30
    RECT button_2;              // x= col1, 60   y= row1, 30
    RECT button_3;              // x= col2, 60   y= row1, 30

    // 7th line
    RECT button_4;              // x= col0, 60   y= row2, 30
    RECT button_5;              // x= col1, 60   y= row2, 30
    RECT button_6;              // x= col2, 60   y= row2, 30

    // 8th line
    RECT button_7;              // x= col0, 60   y= row3, 30
    RECT button_8;              // x= col1, 60   y= row3, 30
    RECT button_9;              // x= col2, 60   y= row3, 30

    // 9th line
    RECT button_star;           // x= col0, 60   y= row4, 30
    RECT button_0;              // x= col1, 60   y= row4, 30
    RECT button_pound;          // x= col2, 60   y= row4, 30

    // 10th line
    RECT button_callanswer;     // x= col0, 104  y= row5, 30 
    RECT button_hangup;         // x= col2, 104  y= row5, 30 

    // bottom right side
    RECT button_up;             // x= col3, 30,  y= row1, 64
    RECT button_down;           // x= col3, 30,  y= row3, 64

    COLORREF text_color;        // #003399
    std::string defaultfontname;// Helvetica

    COLORREF display_color;
    COLORREF display_border;
    RECT display;          // x= 0, 240          y= 26, 294


} InterfaceLayout;


void LoadLayout(InterfaceLayout& layout);

#define __INTERFACELAYOUT_H__
#endif

